# include <bits/stdc++.h>
using namespace std;

int n;
char a[15], b[15];

int mul(char *x, char *y) {
    int ans = 0;
    int lx = strlen(x + 1), ly = strlen(y + 1);
    for(int i = 1; i <= lx; i++) {
        for(int j = 1; j <= ly; j++) {
            ans += (x[i] - '0') * (y[j] - '0');
        }
    }
    return ans;
}

int main() { 
    freopen("cowmult.in", "r", stdin);
    freopen("cowmult.out", "w", stdout);
    scanf("%s %s", a + 1, b + 1);
    printf("%d\n", mul(a, b));
}